{% extends "./base.html" %}
{% block title %}
<title>新闻资讯</title>
{% endblock %}
{% block style %}
<link rel="stylesheet" href="/static/assets/css/home.css">
{% endblock %}
{% block content %}
<div class="page-title">
  <div class="container">
    <div class="row">
      <div class="col-md-12">
        <ol class="breadcrumb">
          <li><a href="/{{pathcity}}">{{'HOME' if lan else '首页'}}</a></li>
          <li><a href="javascript:;">{{pathname}}</a></li>
        </ol>
      </div><!-- Col end -->
    </div><!-- Row end -->
  </div><!-- Container end -->
</div><!-- Page title end -->
<section class="block-wrapper">
  <div class="container">
    <div class="row">
      <div class="col-lg-8 col-md-12">

        <div class="single-post">

          <div class="post-title-area">
            <h2 class="post-title">
              {{detail.title_en if lan else detail.title}}
            </h2>
            <div class="post-meta">
              {% if val.auth %}
              <span class="post-author">
                By <a href="javascript:;">{{detail.auth}}</a>
              </span>
              {% endif %}
              <span class="post-date"><i class="fa fa-clock-o"></i>{{detail.create_time.slice(0,10)}}</span>
              <span class="post-hits post-date"><i class="fa fa-eye"></i>{{detail.count}}</span>
              <!-- <span class="post-comment"><i class="fa fa-comments-o"></i>
                <a href="https://liaoning.lanxiong.com/news/689.html#" class="comments-link"><span>01</span></a></span> -->
            </div>
          </div><!-- Post title end -->

          <div class="post-content-area">
            {% if lan %}
            <div class="entry-content">
              {{detail.content_en | safe}}
            </div>
            {% else %}
            <div class="entry-content">
              {{detail.content | safe}}
            </div>
            {% endif %}
            <!-- <div class="tags-area clearfix">
              <div class="post-tags">
                <span>标签:</span>
                <a href="https://liaoning.lanxiong.com/news/689.html#">#秸秆</a>
                <a href="https://liaoning.lanxiong.com/news/689.html#">#辽宁省</a>
              </div>
            </div> -->


          </div><!-- post-content end -->
        </div><!-- Single post end -->

        <!-- <nav class="post-navigation clearfix">
          <div class="post-previous">
            <a href="https://liaoning.lanxiong.com/news/686.html">
              <span><i class="fa fa-angle-left"></i>上一条</span>
              <h3>
                人气渐旺——沈阳部分消费场所见闻
              </h3>
            </a>
          </div>
          <div class="post-next">
            <a href="https://liaoning.lanxiong.com/news/696.html">
              <span>下一条 <i class="fa fa-angle-right"></i></span>
              <h3>
                胜利大街跨浑南大道互通立交桥预计下半年竣工
              </h3>
            </a>
          </div>
        </nav> -->

      </div><!-- Content Col end -->

      <div class="col-lg-4 col-md-12">
        <div class="sidebar sidebar-right">
          <div class="widget color-red">
            <h3 class="block-title"><span>{{'HOT' if lan else '热点'}}</span></h3>
            <div id="post-slide" class="owl-carousel owl-theme post-slide owl-loaded">
              <!-- Item 1 end -->
              <div class="owl-stage-outer">
                <div class="owl-stage">
                  <div class="owl-item cloned" style="width: 330px; margin-right: 30px;">
                    <div class="item">
                      {%for val in recommend %}
                      <div class="post-overaly-style text-center clearfix">
                        <div class="post-thumb">
                          <a href="?hangye={{hangyeId}}&detail={{val.id}}">
                            <img class="img-fluid" src="{{val.img}}" alt="">
                          </a>
                        </div><!-- Post thumb end -->

                        <div class="post-content">
                          <h2 class="post-title">
                            <a href="?hangye={{hangyeId}}&detail={{val.id}}">{{val.title_en if lan else val.title}}</a>
                          </h2>
                          <div class="post-meta">
                            <span class="post-date">{{val.create_time.slice(0,10)}}</span>
                          </div>
                        </div><!-- Post content end -->
                      </div><!-- Post Overaly Article 1 end -->
                      {% endfor %}
                    </div>
                  </div>
                </div>
              </div>
              <!-- <div class="owl-nav disabled">
                <div class="owl-prev"><i class="fa fa-angle-left"></i></div>
                <div class="owl-next"><i class="fa fa-angle-right"></i></div>
              </div> -->
              <div class="owl-dots disabled"></div>
            </div><!-- Post slide carousel end -->

          </div><!-- Trending news end -->


          <div class="widget color-red m-bottom-0">
            <h3 class="block-title"><span>{{'RANK' if lan else '阅读排行'}}</span></h3>
            <div class="post-overaly-style clearfix">
              <div class="post-thumb">
                <a href="?hangye={{hangyeId}}&detail={{recommend[0].id}}">
                  <img class="img-fluid" src="{{recommend[0].img}}" alt="">
                </a>
              </div>
              {% if recommend.length %}
              <div class="post-content">
                <!-- <a class="post-cat" href="https://liaoning.lanxiong.com/talents/#">新型冠状病毒</a> -->
                <h2 class="post-title title-small">
                  <a href="?hangye={{hangyeId}}&detail={{recommend[0].id}}">{{recommend[0].title_en if lan else recommend[0].title}}</a>
                </h2>
                <div class="post-meta">
                  <span class="post-date">{{recommend[0].create_time.slice(0,10)}}</span>
                </div>
              </div>
              {% endif %}
            </div>
            <div class="list-post-block">
              <ul class="list-post">
                {%for val in recommend %}
                {% if loop.index > 1 %}
                <li class="clearfix">
                  <div class="post-block-style post-float clearfix">
                    <div class="post-thumb">
                      <a href="?hangye={{hangyeId}}&detail={{val.id}}">
                        <img class="img-fluid" src="{{val.img}}" alt="">
                      </a>
                    </div><!-- Post thumb end -->

                    <div class="post-content">
                      <h2 class="post-title title-small">
                        <a href="?hangye={{hangyeId}}&detail={{val.id}}">{{val.title_en if lan else val.title}}</a>
                      </h2>
                      <div class="post-meta">
                        <span class="post-date">{{val.create_time.slice(0,10)}}</span>
                      </div>
                    </div><!-- Post content end -->
                  </div><!-- Post block style end -->
                </li><!-- Li 1 end -->
                {% endif %}
                {% endfor %}
                
              </ul><!-- List post end -->
            </div><!-- List post block end -->

          </div><!-- Popular news widget end -->

        </div><!-- Sidebar right end -->
      </div><!-- Sidebar Col end -->

    </div><!-- Row end -->
  </div><!-- Container end -->
</section><!-- First block end -->
{% endblock %}